//切片容量
package main

import (
	"fmt"
)

func main() {
	var s1 []int
	for i := 0; i < 100; i++ {
		fmt.Printf("len = %d, cap = %d, i = %d\n", len(s1), cap(s1), i)
		s1 = append(s1, i)
	}
}
